package lesson5;

public class Demo2 {
    public static void main(String[] args) {
        //在Java中整型除法的结果一定是整型
        int a = 100;
        int b = 11;
        System.out.println(a/b);
        System.out.println(a%b);
        System.out.println(a+b);

        //自增 自减运算符
        int num1 = 100;
        int num2 = 200;
        int num3 = (num1++)-(--num2); //-98   -99  //此处应该注意
        System.out.println(num3);
//        int num = 100;
//        System.out.println(++num);
//        System.out.println(num++);




    }
}
